package com.nacl.upload.po;

import lombok.Data;

import java.util.Date;
import java.util.LinkedHashMap;

/**
 *@description:
 *@author: xukang
 *@create: 2025-08-01
 */
@Data
public class UploadTask implements Cloneable{

    private Long id;
    private String fileName;
    private Long fileSize;
    private String contentType;
    private TaskStatus status;
    private Long userId;
    private Date uploadTime;
    private String filePath;
    private LinkedHashMap<String,String> errorMessage;
    private Integer totalRows;
    private Integer successRows;
    private Integer failureRows;

    public enum TaskStatus {
         PROCESSING, SUCCESS, FAILURE
    }

    @Override
    public UploadTask clone() throws CloneNotSupportedException {
        return (UploadTask)super.clone();
    }
}
